import {httpClient} from "@/main/apis/axios_proxy.js";

export function api_current_summoner_info(){
  return   httpClient.get(
        "/lol-summoner/v1/current-summoner"
    )
}


export function api_current_summoner_profile_info(){
  return   httpClient.get(
      `/lol-summoner/v1/current-summoner/summoner-profile`
  )
}

export function api_get_summoner_profile_by_puuid (puuid){
    return httpClient.get(
        `/lol-summoner/v1/summoner-profile?puuid=${puuid}`
    )
}

export function api_get_summoner_info_by_puuid(puuid){
  return httpClient.get(
      `/lol-summoner/v2/summoners/puuid/${puuid}`
  )
}


//模糊查询
export function api_search_summoner_by_name({gameName,tagLine}){
  return httpClient.post(
      `lol-summoner/v1/summoners/aliases`,

       [
           {
               "gameName":gameName,
               "tagLine":tagLine
           }
       ]

  )
}



